<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../template/taglib.jsp" %>

<jsp:include page="../template/header.jsp" />

<jsp:include page="../template/adminmenu.jsp" />

<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>
<fmt:setBundle basename="admin" />
<c:set var="t" value="true" />
<h2>
	<fmt:message key="lable.leavetype" />
</h2>
<form action="/LeaveApplicationProcessingSystem/AdminLeavetypeServlet" method="post">
<table cellpadding="4" cellspacing="2" border="0">
	<tr>
		<td>
			<fmt:message key="lable.leavetypename" />
		</td>
		<td>
			<c:if test="${param['insert']==t}">
				<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
				<input type="hidden" name="type" value="insert" />
			</c:if>
			<c:if test="${param['update']==t}">
				<input type="text" name="name" value="${param['name']}" size=15 maxlength=20 >
				<input type="hidden" name="type" value="update" />
				<input type="hidden" name="id" value="${ param.id }" />
			</c:if>
		</td>
	</tr>
	<tr>
		<td>
		<input type="submit" value="Submit"> 
		<input type="reset" value="Reset">
		</td>
	</tr>
</table>
</form>
<jsp:include page="../template/contentfooter.jsp" />
<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />